<div class="nav-sub w1180">
	<ul class="zoom">
		<li><a href="/crm/product/list">商品列表</a></li>
		<li><a href="/crm/product/cate-list">商品分类列表</a></li>
		<li><a class="on" href="">编辑商品分类</a></li>
	</ul>
</div>
<div class="main-ct w1180">
<!-- 	<a href="javascript:;" class="btn-cs btn-blue btn-fillet mt10">返 回</a> -->
<form id="commonForm" method="post" action="/crm/product/updateCate">
	<div class="form-info mt20">
	
		<dl>
			<dt>商户名称：</dt>
			<dd>
    			<select name="org_id" id="org_id">
    			<?php if ($this->organization):?>
				<?php foreach ($this->organization as $k=>$v):?>
				
					<?php if($this->category['org_id'] == $v['org_id']):?>
                           <option selected value="<?php echo $this->category['org_id'];?>"><?php echo $v['org_title'];?></option>
                     <?php else:?>
                           <option value="<?php echo $v['org_id']; ?>"><?php echo $v['org_title']; ?></option>
                     <?php endif;?> 
                     
    				
    			<?php endforeach; ?>
    			<?php else:?>
    				<option value="">请选择</option>
				<?php endif;?>		
    			</select>
			</dd>
		</dl>
		<dl>
			<dt>商户类目名称：</dt>
			<dd><input type="text" class="txt" name="category_name" id="category_name" value="<?php echo $this->category['category_name'];?>"></dd>
		</dl>

	</div>

	<p class="mt30 txt-center">
		<input type="hidden" name="category_id" value="<?php echo $this->category['category_id'];?>">
		<input class="input-cs btn-fillet btn-green" type="submit" value="确定" />
	</p>
</form>
</div>

<script type="text/javascript">
    $().ready(function() {
		$("#commonForm").validate({
			debug:true,
			rules: {
				category_name: {
					required: true,
				},
		
			},
    		submitHandler:function(form){  
    	            form.submit();
    	    }   
		});

	});
</script>